home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Esportes / turboracer.swf / scripts / DefineButton2_756 / BUTTONCONDACTION on(release).as
Text File  |  2007-07-10  |  714b  |  27 lines

  1. on(release){
  2.    stopAllSounds();
  3.    if(eval("_root:Challenge") == true)
  4.    {
  5.       if(eval("_root:TimeUp") == true)
  6.       {
  7.          set("_root:OpenMode",true);
  8.          _parent._parent._parent.gotoAndStop("Title");
  9.       }
  10.       else if(eval("_parent._parent.Control:G_Level") == 5)
  11.       {
  12.          _parent._parent.FinalScr.gotoAndPlay(2);
  13.       }
  14.       else
  15.       {
  16.          set("_root:PassLevel",eval("_parent._parent.Control:G_Level") + 1);
  17.          set("_root:PassScore",eval("_parent._parent.Control:G_Score"));
  18.          _parent._parent.gotoAndStop("ClearVar");
  19.       }
  20.    }
  21.    else
  22.    {
  23.       set("_root:OpenMode",true);
  24.       _parent._parent._parent.gotoAndStop("Title");
  25.    }
  26. }
  27.